<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('banner/index')}">banner列表</a></li>
        <li class="active"><a href="{:url('banner/add')}">添加banner</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('banner/add')}"
          method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">图片model</label>
                            <div class="col-md-3 col-sm-5">
                               <select name="model" class="form-control">
                                    <foreach name="cate" item="vo" key="kk">
                                    <option value="{$kk}">{$vo}</option>
                                    </foreach>
                               </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">图片跳转链接</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="url"
                                       value="{$url|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">图片排序</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="sort"
                                       value="{$url|default=''}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">图片上传</label>
                            <div class="col-md-3 col-sm-5">
                                <input id="photo-1" type="hidden" name="img">
                                <input id="photo-1-name" type="text" name="photo_name" title="图片名称">
                                <img id="photo-1-preview" >
                                <a href="javascript:uploadOneImage('图片上传','#photo-1');">上传</a>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" style="width:150px;" class="btn btn-primary">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/frontend.js"></script>
</body>
</html>
